package whf.framework.web.tag.ext;

import java.util.Collection;

import whf.framework.datasource.DataRow;
import whf.framework.util.BeanUtils;

/**
 * @author king
 * @modify 2007-12-16 下午05:34:35
 */
public class DefaultCollectionPropertyDisplay implements
		ICollectionPropertyDisplay {

	/* (non-Javadoc)
	 * @see whf.framework.web.tag.ext.ICollectionPropertyDisplay#display(whf.framework.datasource.DataRow, java.util.Collection)
	 */
	public String display(DataRow currentBO, Collection collection) {
		return BeanUtils.getObjectPropertyString(collection, new String[]{"name"});
	}

}
